package com.yonyou.pmclouds.repeatwork.mapper;

import com.yonyou.pmclouds.basecom.dao.BaseMapper;
import com.yonyou.pmclouds.basecom.entity.PageObject;
import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.project.entity.ProjectVO;
import com.yonyou.pmclouds.repeatwork.entity.RepeatWorkVO;
import com.yonyou.pmclouds.workstopreport.entity.WorkStopVO;
import org.apache.ibatis.annotations.Param;

public interface RepeatWorkMapper extends BaseMapper<RepeatWorkVO> {

    RepeatWorkVO selectByPrimaryKey(@Param("pkRepeatWork")String pkRepeatWork);
    /**
     * 根据项目ID获得项目名称以及编号
     */
    ProjectVO selectProject(@Param("projectId") String projectId);
    /**
     * 根据条件查询数量
     */
    int countByCondition(@Param("pkProjects")String[] pkProjects,
                         @Param("creators") String[] creators,
                         @Param("startDate") String startDate,
                         @Param("endDate") String endDate,
                         @Param("billStatus") int[] billStatus);
    /**
     * 根据条件查询停工条件
     */
    RepeatWorkVO[] queryByCondition(@Param("pkProjects")String[] pkProjects,
                                  @Param("creators") String[] creators,
                                  @Param("startDate") String startDate,
                                  @Param("endDate") String endDate,
                                  @Param("billStatus") int[] billStatus,
                                  @Param("start") int start,
                                  @Param("size") int size);
}
